package com.duobaoyu.dby.supply.biz.constant;

import com.duobaoyu.dby.common.core.util.DateUtils;

import java.time.LocalDateTime;

/**
 * 钉钉文本常量
 *
 * @author fengshaoyu
 * @version 1.0.0
 * @date 2023/9/27 18:03
 */
public class DingDingConstants {
	/**
	 * 基础文本
	 */
	public static final String BASE_MESSAGE_TEXT = "";
	/**
	 * 基础异常信息文本
	 */
	public static final String BASE_EXCEPTION_MESSAGE_TEXT = "\n> - 当前环境: active " +
			"\n> - 告警时间: " + LocalDateTime.now().format(DateUtils.DEFAULT_DATE_TIME_FORMATTER) +
			"\n> - 供应链单号: orderSn " +
			"\n> - 渠道编码: channelCode " +
			"\n> - 错误说明: errorMessage" +
			"\n> - 当前链路ID: requestId";

	/**
	 * 同步订单
	 */
	public static final String SYNC_ORDER = "\n> - 当前环境: active " +
			"\n> - 告警时间: " + LocalDateTime.now().format(DateUtils.DEFAULT_DATE_TIME_FORMATTER) +
			"\n> - 标题: 订单状态同步 " +
			"\n> - 供应链单号: orderSn" +
			"\n> - 渠道编码: channelCode" +
			"\n> - 渠道子单号: channelOrderSn" +
			"\n> - 渠道父单号: channelOrderParentSn" +
			"\n> - 供应链状态: supplyStatus" +
			"\n> - 供应链状态说明: supplyStatusDesc" +
			"\n> - 渠道转换状态: channelOrderStatus" +
			"\n> - 渠道转换状态说明: channelOrderStatusDesc" +
			"\n> - 当前链路ID: requestId";
}
